import { Module, ValidationPipe } from '@nestjs/common';
import { APP_PIPE } from '@nestjs/core';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CommentModule } from 'lib/comment';
import { NonOperatingAssets } from 'libs/db/entity/non-operating-assets.entity';
import { NonOperatingAssetsController } from './non-operating-assets.controller';
import { NonOperatingAssetsService } from './non-operating-assets.service';

@Module({
    imports: [
        CommentModule,
        TypeOrmModule.forFeature([NonOperatingAssets])
    ],
    controllers: [
        NonOperatingAssetsController
    ],
    providers: [
        NonOperatingAssetsService,
        {
            provide: APP_PIPE,
            useClass: ValidationPipe
        }
    ],
})
export class NonOperatingAssetsModule { }
